# 13-发工资.py
import random
money = 10000
for i in range(1,21):
    index = random.randint(1,10)
    if index<5:
        print(f'员工{i},绩效分{index},低于5分,没钱下一个')
        continue
    else:
        if money>0:
            money-=1000
            print(f'向员工{i},发放1000,余额{money}')
        elif money==0:
            print(f'公司账户不足,员工{i}因左脚踏进公司被开除')
            break
